package com.example.backend.service.mysql.user;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.backend.dto.request.PageUserDto;
import com.example.backend.entitly.mysql.user.Users;

/**
 * @author 1
 * @description 针对表【users(用户表)】的数据库操作Service
 * @createDate 2025-06-04 09:01:52
 */
public interface UsersService extends IService<Users> {

    Boolean removeByUserId(Long userId);

    Boolean cancelRemove(Long userId);

    Page<Users> pageListByUser(PageUserDto pageUserDto);

    Users getByRemoveId(Long userId);

    Boolean removeByPhysicsId(Long userId);

    Page<Users> pageListByWholesaler(PageUserDto pageUserDto);

    Boolean removeByWholesId(Long userId);

    Users saveByUser(String username);

    Users getByUserId(Integer principal);
}
